import { createSSRApp } from "vue";
import App from "./App.vue";
import piniaPersist from 'pinia-plugin-persist-uni';
import uviewPlus, { setConfig } from "uview-plus";
import { createPinia } from 'pinia'
const pinia = createPinia();
pinia.use(piniaPersist);

export function createApp() {
  const app = createSSRApp(App);
  app.use(uviewPlus).use(pinia);
  return {
    app,
  };
}
